const http = uni.$u.http

// 首页
export const getIndex = (params) => http.get('/api/index', params);//获取首页数据

// 认证
export const authLogin = (params, config = {}) => http.post('/api/auth/login',params,config);//登录
export const authLogout = (params, config = {}) => http.post('/api/auth/logout',params,config);//退出登录
export const authregister = (params, config = {}) => http.post('/api/auth/register',params,config);//注册


// 用户
export const getUserInfo = () => http.get('/api/user');//获取用户loginOut